package com.tl.boot.entity.user.form;

import com.tl.boot.common.enums.ResultEnum;
import com.tl.boot.common.enums.StatusEnum;
import com.tl.boot.common.exception.BaseException;
import com.tl.boot.entity.demo.form.Base.BaseForm;

/**
 * com.tl.boot.entity.user.form -- UpdateUserForm
 * Description:
 * Created by joshua_liu <a href="mailto:joshualwork@163.com"></a>
 * On 2019/9/17 8:57
 */
public class UpdateUserForm extends BaseForm {
//    @ApiModelProperty( value = "资源编码", name = "resCode", example = "addUser" )
    private Long id;
    private String realName;
    private StatusEnum userStatusEnum;
    private String menuType;
//    private Date createTime;
//    private Date lastmodiTime;
//    private Date lockTime;
//    private Date passExpiryTime;
//    private Date effictiveBeginTime;
//    private Date effictiveEndTime;
    private Long orgId;
    private String remark;
    private String reserve;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public StatusEnum getUserStatusEnum() {
        return userStatusEnum;
    }

    public void setUserStatusEnum(StatusEnum userStatusEnum) {
        this.userStatusEnum = userStatusEnum;
    }

    public String getMenuType() {
        return menuType;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
    }
    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getReserve() {
        return reserve;
    }

    public void setReserve(String reserve) {
        this.reserve = reserve;
    }

    @Override
    public void checkParam() {
        if (this.id == null || this.realName == null) {
            throw new BaseException(ResultEnum.REQUEST_PARAM_ILLEGAL);
        }
    }
}
